<?php
/**
 * Created by PhpStorm.
 * User : Orange Tel: 181-3414-1353 QQ:1139552211
 * Date    : 2021/6/11 上午10:36
 */

namespace app\index\controller;


use app\common\controller\IndexController;
use ClassLibrary\ClHttp;

/**
 * Class Pay
 * @package app\index\controller
 * User : Orange Tel: 181-3414-1353 QQ:1139552211
 * Date    : 2021/6/11 上午10:37
 */
class Pay extends IndexController {


    public function add_user_coin_address() {

        $params['appid']  = config('pay')['appid'];
        $params['method'] = 'market';
        $sign             = zt_pay_sign($params);
        $params['sign']   = $sign;

        $itmes = ClHttp::request(config('pay')['url'], $params, 'json');
        echo_info($itmes);
    }
}